home *** CD-ROM | disk | FTP | other *** search
- function shopitemnameshow()
- {
- if(scrolldragbar._y >= 138)
- {
- shopitemname1 = shopitemnamearray[0];
- shopitemname2 = shopitemnamearray[1];
- shopitemname3 = shopitemnamearray[2];
- shopitemname4 = shopitemnamearray[3];
- shopitemname5 = shopitemnamearray[4];
- itemdessave1 = shopitemintro[0];
- itemdessave2 = shopitemintro[1];
- itemdessave3 = shopitemintro[2];
- itemdessave4 = shopitemintro[3];
- itemdessave5 = shopitemintro[4];
- itemshowgo1 = 2;
- itemshowgo2 = 3;
- itemshowgo3 = 4;
- itemshowgo4 = 5;
- itemshowgo5 = 6;
- itemcostshow1 = itemcostarray[0];
- itemcostshow2 = itemcostarray[1];
- itemcostshow3 = itemcostarray[2];
- itemcostshow4 = itemcostarray[3];
- itemcostshow5 = itemcostarray[4];
- }
- if(scrolldragbar._y >= 153)
- {
- shopitemname1 = shopitemnamearray[1];
- shopitemname2 = shopitemnamearray[2];
- shopitemname3 = shopitemnamearray[3];
- shopitemname4 = shopitemnamearray[4];
- shopitemname5 = shopitemnamearray[5];
- itemdessave1 = shopitemintro[1];
- itemdessave2 = shopitemintro[2];
- itemdessave3 = shopitemintro[3];
- itemdessave4 = shopitemintro[4];
- itemdessave5 = shopitemintro[5];
- itemshowgo1 = 3;
- itemshowgo2 = 4;
- itemshowgo3 = 5;
- itemshowgo4 = 6;
- itemshowgo5 = 7;
- itemcostshow1 = itemcostarray[1];
- itemcostshow2 = itemcostarray[2];
- itemcostshow3 = itemcostarray[3];
- itemcostshow4 = itemcostarray[4];
- itemcostshow5 = itemcostarray[5];
- }
- if(scrolldragbar._y >= 168)
- {
- shopitemname1 = shopitemnamearray[2];
- shopitemname2 = shopitemnamearray[3];
- shopitemname3 = shopitemnamearray[4];
- shopitemname4 = shopitemnamearray[5];
- shopitemname5 = shopitemnamearray[6];
- itemdessave1 = shopitemintro[2];
- itemdessave2 = shopitemintro[3];
- itemdessave3 = shopitemintro[4];
- itemdessave4 = shopitemintro[5];
- itemdessave5 = shopitemintro[6];
- itemshowgo1 = 4;
- itemshowgo2 = 5;
- itemshowgo3 = 6;
- itemshowgo4 = 7;
- itemshowgo5 = 8;
- itemcostshow1 = itemcostarray[2];
- itemcostshow2 = itemcostarray[3];
- itemcostshow3 = itemcostarray[4];
- itemcostshow4 = itemcostarray[5];
- itemcostshow5 = itemcostarray[6];
- }
- if(scrolldragbar._y >= 183)
- {
- shopitemname1 = shopitemnamearray[3];
- shopitemname2 = shopitemnamearray[4];
- shopitemname3 = shopitemnamearray[5];
- shopitemname4 = shopitemnamearray[6];
- shopitemname5 = shopitemnamearray[7];
- itemshowgo1 = 5;
- itemshowgo2 = 6;
- itemshowgo3 = 7;
- itemshowgo4 = 8;
- itemshowgo5 = 9;
- itemdessave1 = shopitemintro[3];
- itemdessave2 = shopitemintro[4];
- itemdessave3 = shopitemintro[5];
- itemdessave4 = shopitemintro[6];
- itemdessave5 = shopitemintro[7];
- itemcostshow1 = itemcostarray[3];
- itemcostshow2 = itemcostarray[4];
- itemcostshow3 = itemcostarray[5];
- itemcostshow4 = itemcostarray[6];
- itemcostshow5 = itemcostarray[7];
- }
- if(scrolldragbar._y >= 198)
- {
- shopitemname1 = shopitemnamearray[4];
- shopitemname2 = shopitemnamearray[5];
- shopitemname3 = shopitemnamearray[6];
- shopitemname4 = shopitemnamearray[7];
- shopitemname5 = shopitemnamearray[8];
- itemshowgo1 = 6;
- itemshowgo2 = 7;
- itemshowgo3 = 8;
- itemshowgo4 = 9;
- itemshowgo5 = 10;
- itemdessave1 = shopitemintro[4];
- itemdessave2 = shopitemintro[5];
- itemdessave3 = shopitemintro[6];
- itemdessave4 = shopitemintro[7];
- itemdessave5 = shopitemintro[8];
- itemcostshow1 = itemcostarray[4];
- itemcostshow2 = itemcostarray[5];
- itemcostshow3 = itemcostarray[6];
- itemcostshow4 = itemcostarray[7];
- itemcostshow5 = itemcostarray[8];
- }
- if(scrolldragbar._y >= 213)
- {
- shopitemname1 = shopitemnamearray[5];
- shopitemname2 = shopitemnamearray[6];
- shopitemname3 = shopitemnamearray[7];
- shopitemname4 = shopitemnamearray[8];
- shopitemname5 = shopitemnamearray[9];
- itemshowgo1 = 7;
- itemshowgo2 = 8;
- itemshowgo3 = 9;
- itemshowgo4 = 10;
- itemshowgo5 = 11;
- itemdessave1 = shopitemintro[5];
- itemdessave2 = shopitemintro[6];
- itemdessave3 = shopitemintro[7];
- itemdessave4 = shopitemintro[8];
- itemdessave5 = shopitemintro[9];
- itemcostshow1 = itemcostarray[5];
- itemcostshow2 = itemcostarray[6];
- itemcostshow3 = itemcostarray[7];
- itemcostshow4 = itemcostarray[8];
- itemcostshow5 = itemcostarray[9];
- }
- if(scrolldragbar._y >= 225)
- {
- shopitemname1 = shopitemnamearray[6];
- shopitemname2 = shopitemnamearray[7];
- shopitemname3 = shopitemnamearray[8];
- shopitemname4 = shopitemnamearray[9];
- shopitemname5 = shopitemnamearray[10];
- itemshowgo1 = 8;
- itemshowgo2 = 9;
- itemshowgo3 = 10;
- itemshowgo4 = 11;
- itemshowgo5 = 12;
- itemdessave1 = shopitemintro[6];
- itemdessave2 = shopitemintro[7];
- itemdessave3 = shopitemintro[8];
- itemdessave4 = shopitemintro[9];
- itemdessave5 = shopitemintro[10];
- itemcostshow1 = itemcostarray[6];
- itemcostshow2 = itemcostarray[7];
- itemcostshow3 = itemcostarray[8];
- itemcostshow4 = itemcostarray[9];
- itemcostshow5 = itemcostarray[10];
- }
- if(scrolldragbar._y >= 240)
- {
- shopitemname1 = shopitemnamearray[7];
- shopitemname2 = shopitemnamearray[8];
- shopitemname3 = shopitemnamearray[9];
- shopitemname4 = shopitemnamearray[10];
- shopitemname5 = shopitemnamearray[11];
- itemshowgo1 = 9;
- itemshowgo2 = 10;
- itemshowgo3 = 11;
- itemshowgo4 = 12;
- itemshowgo5 = 13;
- itemdessave1 = shopitemintro[7];
- itemdessave2 = shopitemintro[8];
- itemdessave3 = shopitemintro[9];
- itemdessave4 = shopitemintro[10];
- itemdessave5 = shopitemintro[11];
- itemcostshow1 = itemcostarray[7];
- itemcostshow2 = itemcostarray[8];
- itemcostshow3 = itemcostarray[9];
- itemcostshow4 = itemcostarray[10];
- itemcostshow5 = itemcostarray[11];
- }
- if(scrolldragbar._y >= 255)
- {
- shopitemname1 = shopitemnamearray[8];
- shopitemname2 = shopitemnamearray[9];
- shopitemname3 = shopitemnamearray[10];
- shopitemname4 = shopitemnamearray[11];
- shopitemname5 = shopitemnamearray[12];
- itemshowgo1 = 10;
- itemshowgo2 = 11;
- itemshowgo3 = 12;
- itemshowgo4 = 13;
- itemshowgo5 = 14;
- itemdessave1 = shopitemintro[8];
- itemdessave2 = shopitemintro[9];
- itemdessave3 = shopitemintro[10];
- itemdessave4 = shopitemintro[11];
- itemdessave5 = shopitemintro[12];
- itemcostshow1 = itemcostarray[8];
- itemcostshow2 = itemcostarray[9];
- itemcostshow3 = itemcostarray[10];
- itemcostshow4 = itemcostarray[11];
- itemcostshow5 = itemcostarray[12];
- }
- if(scrolldragbar._y >= 280)
- {
- shopitemname1 = shopitemnamearray[9];
- shopitemname2 = shopitemnamearray[10];
- shopitemname3 = shopitemnamearray[11];
- shopitemname4 = shopitemnamearray[12];
- shopitemname5 = shopitemnamearray[13];
- itemshowgo1 = 11;
- itemshowgo2 = 12;
- itemshowgo3 = 13;
- itemshowgo4 = 14;
- itemshowgo5 = 15;
- itemdessave1 = shopitemintro[9];
- itemdessave2 = shopitemintro[10];
- itemdessave3 = shopitemintro[11];
- itemdessave4 = shopitemintro[12];
- itemdessave5 = shopitemintro[13];
- itemcostshow1 = itemcostarray[9];
- itemcostshow2 = itemcostarray[10];
- itemcostshow3 = itemcostarray[11];
- itemcostshow4 = itemcostarray[12];
- itemcostshow5 = itemcostarray[13];
- }
- }
- var shopitemnamearray = new Array();
- var itemcostarray = new Array();
- var shopitemintro = new Array();
- shopitemnamearray[0] = "可口可樂";
- itemcostarray[0] = 90;
- shopitemintro[0] = "可口可樂公司的飲料\nHP+90";
- shopitemnamearray[1] = "鮪魚御飯糰";
- itemcostarray[1] = 2400;
- shopitemintro[1] = "柔親手做的飯糰\nHP+30%,MP+30%";
- shopitemnamearray[2] = "生魚片壽司";
- itemcostarray[2] = 500;
- shopitemintro[2] = "柔親手做的壽司\nHP+500";
- shopitemnamearray[3] = "鮭魚卵壽司";
- itemcostarray[3] = 300;
- shopitemintro[3] = "柔親手做的壽司\nMP+150";
- shopitemnamearray[4] = "花枝丸";
- itemcostarray[4] = 610;
- shopitemintro[4] = "新鮮的花枝丸。\nMP+300";
- shopitemnamearray[5] = "海鮮拉麵";
- itemcostarray[5] = 1000;
- shopitemintro[5] = "手工拉麵,麵條香Q滑嫩。\nMP+300 HP+400";
- shopitemnamearray[6] = "隨身便當";
- itemcostarray[6] = 1000;
- shopitemintro[6] = "極品米和嚴選排骨配上獨家醬料!OMG!真好吃。\nMP+200 HP+600";
- shopitemnamearray[7] = "豚骨拉麵";
- itemcostarray[7] = 6000;
- shopitemintro[7] = "神戶豬和手工拉麵,人間美味啊~~。\nHP+80%.MP+80%";
- shopitemnamearray[8] = "燒烤串";
- itemcostarray[8] = 5500;
- shopitemintro[8] = "烤丸子加春捲?。\nHP+2000,MP+2000";
- shopitemnamearray[9] = "三色花枝丸";
- itemcostarray[9] = 4000;
- shopitemintro[9] = "新鮮的花枝丸。\nMP全滿";
- shopitemnamearray[10] = "招牌湯";
- itemcostarray[10] = 3500;
- shopitemintro[10] = "柔煮的湯,香味四溢.\nHP全滿";
- shopitemnamearray[11] = "珍珠紅蟳";
- itemcostarray[11] = 7000;
- shopitemintro[11] = "御用級螃蟹配上美味的調味料!\nHP.MP全滿";
- shopitemnamearray[12] = "雞蛋豆腐";
- itemcostarray[12] = 4800;
- shopitemintro[12] = "就是雞蛋加豆腐咩!\nHP50%.MP50%恢復";
- shopitemnamearray[13] = "水餃";
- itemcostarray[13] = 800;
- shopitemintro[13] = "韭菜豬肉味!\nHP10%.MP10%恢復";
-